Skip to main content

All Questions

Tagged with
0votes
0answers
48views

Problema with bootstrapDualListbox and ajax

I have the following: html: <div id="modal-form" class="modal fade" tabindex="-1" aria-hidden="true" style="z-index: 0;"> <div class="...
Javier Mejías's user avatar
0votes
1answer
260views

i can't render partial js from controller rails 7

I've created my_portfolio.html.erb with form submission to controller with remote: true , the controller take the params and verification everything work fine with condition and code, but it's can't ...
LAX's user avatar
0votes
0answers
48views

Why I see ajax response instead of view in my RAILS 5 app

I have button which submit login form. This button generate POST request for my session controller Started POST "/login" for 127.0.0.1 at 2024-04-03 10:49:13 +0300 Processing by ...
Anderson's user avatar
0votes
1answer
36views

Rails Cancancan Ajax custom action not working

I have a Rails App to which I added Devise and Cancancan to authentication and authorization. Before that, the actio worked correctly, now in the console browser I see a redirect to the home. I call ...
Alfredo's user avatar
0votes
2answers
326views

Rails Error: ActionController::UnknownFormat is missing a template for this request format and variant

I have a form in index page and I want that the action will be executed by Ajax, to display the result in the Index page. This is my form in the index Page: <%= form_with model: @shopping, :...
Alfredo's user avatar
0votes
1answer
91views

FullCalendar implementation in Rails

I am implementing FullCalendar in a RoR project and I got this error when I try to update a row : PATCH http://127.0.0.1:3000/events 404 (Not Found) Here is the Ajax call to update a row when I ...
userHG's user avatar
1vote
1answer
89views

Unprocessable entity in Ajax

I need to make an ajax request to change the "status" parameter of my "task" object. the script, that's right, i can get the id of the task and the new status, that's all i need. ...
Alex Nunes's user avatar
-1votes
2answers
39views

In Rails applications, how do we deal with the DOM that appears dynamically?

So as you all know that 1 trick of JS is that let's say for example we bind a click event for all buttons on this page: $(".btn").click(...) <button class='btn'>A</button> <...
Invincible_Pain's user avatar
0votes
2answers
39views

Rending partial from Ajax response is not updating variable

I have a Rails partial I am attempting to populate and display based on a Ajax response but it seems the instance variable is not being updated. I know I'm missing something. It might be due to the ...
Jeremy Thomas's user avatar
2votes
1answer
95views

Display the price of a coin after selecting its name in select

I use slim-select in which you can select the name of the coin, how to display its price after selecting the name (the price is in the database, i can find it by the name that is selected in the ...
Taras Rogulya's user avatar
1vote
1answer
48views

Fetch not including Cookies despite correctly configured options and CORS

I have an backend server -- https://b.com -- and a client server -- https://a.com. I want to issue authenticated ajax requests from a.com to b.com. Before the request is issued, the user will go to b....
Vitor Pereira's user avatar
0votes
1answer
1kviews

Understanding how to use Turbo with Ruby on Rails

I am trying to understand how to use Turbo in order to refresh the content of the page without having to refresh the page. I have gone through some videos and web tutorials, but it doesn't apply to ...
djFuz's user avatar
2votes
1answer
1kviews

How to modify the fresh loaded/rendered content present in a <turbo-frame> element?

I've successfully implemented a search form (i.e. a text input field) that changes the src attribute value of a <turbo-frame> element (which one automatically fetches and renders data ...
Backo's user avatar
  • 18.9k
1vote
1answer
1kviews

Remote: true on simple form not making AJAX request but rendering blank page instead

I know there are many posts about this issue, but most of them are really old and none includes ActionCable. So here comes the challenge: I am building a chat functionality with ActionCable and the ...
Lisbeth Purrucker's user avatar
0votes
1answer
242views

Rails 6 form_with remote UJS, bind extra handler to select or submit

In my Rails app, I have a form for voting on various "post" titles. The form has one select element, and submits remotely to a VotesController using rails-ujs. I want to handle response the ...
nimmolo's user avatar

153050per page
close